import React, { Component } from 'react'
import {NavLink} from "react-router-dom"
import RouterView from '../../router/router.view'
interface IProps{
    routerConfig:Array<any>
}
export class Home extends Component<IProps> {
    render() {
        return (
            <div className='home'>
                <div className="main">
                    <RouterView  routerConfig={this.props.routerConfig}/>
                </div>
                <footer className="footer">
                    <NavLink to='/home/index'>首页</NavLink>
                    <NavLink to='/home/my'>我的</NavLink>
                </footer>
            </div>
        )
    }
}

export default Home
